/**
 * 待测碱液
 */
Jianye = Widget.extend({
	ctor:function(){
		this._super();
		this.init();
		this.setTag(TAG_JIANYE_BOTTLE);
	},
	init:function(){
		this.body = new Button(this, 10, TAG_JIANYE, "#xi_ping.png", this.callback);
		this.body.setScale(1.5);
		
		var lid = new Button(this, 9, TAG_LID, "#xiangpisai.png", this.callback,this);
		lid.setPosition(0,70);
		lid.setScale(0.9);

		
		var label = new cc.LabelTTF("碱液",gg.fontName,12);
		label.setColor(cc.color(0,0,0));
		label.setPosition(22, 31);
		this.setCascadeOpacityEnabled(true);
		this.body.addChild(label, 11);
	},
	openLid:function(){
		var ber = cc.bezierBy(1,[cc.p(50,70),cc.p(60,-70),cc.p(70,-105)]);
		var rot=cc.rotateTo(1, 180);
		var spw=cc.spawn(ber,rot);
		var seq = cc.sequence(spw,this.func);
		this.getChildByTag(TAG_LID).runAction(seq);
	},

	callback:function(p){
		switch(p.getTag()){
		case TAG_LID:
			this.openLid();
			break;
		case TAG_SPOON:
			
			break;
		}
	},
	actionDone:function(p){
		switch(p.getTag()){
		case TAG_LID:
			gg.flow.next();
			break;
		case TAG_SPOON:

			break;
		}
	},
});